infosys interview js question